package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Setter@Getter
@Document("strategy_comment")
public class StrategyComment implements Serializable {

    @Id
    private String id;

    private Long detailId;//文章id

    private String detailTitle;//文章标题(不存也可以)

    private Long userId;//用户id

    private String username;//用户昵称

    private Integer level;//等级

    private String headUrl;//头像

    private Date createTime;//评论时间

    private String content;//评论内容

    private Integer thumbupnum = 0;//点赞数

    private List<Long> thumbuplist = new ArrayList<>();//点赞用户的ids
}
